<?php

$foo=$_GET["reportid"];

include("mysql_conn.php");
include("settings.php");

$result=mysql_query("select user, date_format(creationtime, '%c/%e/%Y %H:%i:%s') as creationtime from status_reports where reportid=$foo");

while($row=mysql_fetch_array($result))
{
 $creationtime=$row['creationtime'];
}

echo "<html><head><title>$site_title: Delete Status Report</title>
<link rel='stylesheet' type='text/css' href='style.css'>
</head><body>
<h3>Are you sure you want to delete this status report?</h3>
<form action='deletereport-do.php?reportid=$foo' method='post'>
<table width=20%>
<tr><th width=9%>Created</th></tr>
<tr><td>
$creationtime</td></tr>
</table>
<input type='submit' value='Apply'></body></html>";

mysql_close($con)
?>

